﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>企业高级查询</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=path%>/js/selected.js"></script>
	<script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js" defer="defer"></script><base target="_self" />
	<script type="text/javascript">
		$(function(){
			initSelArray('cUnit:1','cDept:1','cMinType:2');
			var cCounty = '${cCounty}';
			var cUnit = '${cUnit}';
			var cDept = '${cDept}';
			if(null!=cCounty && cCounty!=""){
				changeCounty(cCounty);
			}
	   		if(cUnit!=null && cUnit!=""){
	   			changeUnit(cUnit);
	   			selected('cUnit',cUnit);	//加载选中项
	   		}
	   		if(cDept!=null && cDept!=""){
	   			selected('cDept',cDept);	//加载选中项
	   		}
	   		
	   		var cMaxType = '${cMaxType}';
			var cMinType = '${cMinType}';
			if(null!=cMaxType && cMaxType!=""){
				changeType(cMaxType);
			}
			if(cMinType!=null && cMinType!=""){
	   			selected('cMinType',cMinType);	//加载选中项
	   		}
	   		
		});
		
		function changeCounty(cid){
	   		var urls='<%=basePath%>/util/data_getDept.action?cUnit='+cid+"&cCounty=1";
	   		buildSelect(cid, 'cUnit',urls,'1');
	   	}
	   	function changeUnit(uid){
	   		var urls="<%=basePath%>/util/data_getDept.action?cUnit="+uid;
	   		buildSelect(uid, 'cDept',urls,'1');
	   	}
	   	function changeType(maxid){
	   		var urls="<%=basePath%>/util/data_getCorpType.action?cMaxType="+maxid;
	   		buildSelect(maxid, 'cMinType',urls,'2');
	   	}
	</script>
  </head>
  
  <body>
	<div  class="body-box">
		<div class="map">
			<div class="map_con">
				您当前的位置：企业分类管理 &gt; 企业高级查询 &gt; 设置查询条件
			</div>
			
		</div>
		<div id="container">
			<form action="<%=basePath%>/enterprise/con_corpList.action?search=1" method="post" name="searchform">
		    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
					<tr>
						<td colspan="4" class="title_li">查询条件</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">企业名称：</td>
						<td colspan="3"><input type="text" name="keyWord" value="${keyWord }" size="50%"></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">企业地址：</td>
						<td colspan="3"><input type="text" name="corpAdds" value="${corpAdds }" size="50%"></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">成立日期：</td>
						<td colspan="3"><input name="cBtime" id="time1" class="Wdate" type="text" value="${cBtime }" readonly="readonly" onClick="WdatePicker({maxDate:'#F{$dp.$D(\'time2\')}'})"/>--<input name="cEtime" id="time2" class="Wdate" readonly="readonly" type="text" value="${cEtime }" onClick="WdatePicker({minDate:'#F{$dp.$D(\'time1\')}'})"/></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">工商注册号：</td>
						<td colspan="3"><input name="cGsCode" type="text" class="info_input" value="${cGsCode}"></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">属地：</td>
						<td colspan="3">
							<s:select list="sdList" name="cCounty" listKey="id" listValue="deptName" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;" id="cCounty" onchange="changeCounty(this.value);"></s:select>
				   			<s:select list="#{}" name="cUnit" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;margin-left:5px;" id="cUnit" onchange="changeUnit(this.value);"></s:select>
				   			<s:select list="#{}" name="cDept" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;margin-left:5px;" id="cDept"></s:select>
						</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">企业类型：</td>
						<td>
							<s:select list="typeList" name="cMaxType" listKey="id" listValue="typeName" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;" id="cMaxType" onchange="changeType(this.value);"></s:select> 
				   			<s:select list="#{}" name="cMinType" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;margin-left:5px;" id="cMinType"></s:select>
						</td>
						<td class="title_td" width="15%">隶属关系：</td>
						<td width="35%"><s:select list="#{'10':'中央','20':'省','40':'市、地区','50':'县','60':'街道、镇、乡','61':'街道','62':'镇','63':'乡','70':'居民、村民委员会','71':'居民委员会','72':'村民委员会','90':'其他'}" name="cLixu" value="%{cLixu}" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;"></s:select></td>  
					</tr>
					<tr>
						<td width="15%" class="title_td">行业部门：</td>
						<td width="35%"><s:select list="hyList" name="cHy" value="%{cHy}" listKey="id" listValue="deptName" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;"></s:select></td>
						<td width="15%" class="title_td">专业部门：</td>
						<td width="35%"><s:select list="#{1:'消防局',2:'质监局',3:'气象局' }" name="cZy" value="%{cZy}" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;"></s:select></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">国民经济类型：</td>
						<td>
						<s:select list="#{'10':'内资','11':'国有全资','12':'集体全资','13':'股份合作','14':'联营','15':'有限责任（公司）','16':'股份有限（公司）','17':'私有','19':'其他内资',
											  '20':'港澳台投资','21':'内地和港、澳、台合资','22':'内地和港、澳、台合作','23':'港、澳、台独资','24':'港、澳、台投资股份有限（公司）','29':'其他港澳台投资',
											  '30':'国外投资','31':'中外合资','32':'中外合作','33':'外资','34':'国外投资股份有限（公司）','39':'其他国外投资','90':'其他' }" name="cProperty" value="%{cProperty}" headerKey="" headerValue="请选择" theme="simple" id="bselect6" cssStyle="width:155px;margin-left:5px;"></s:select>
						</td>
						<td width="15%" class="title_td">企业运营状态：</td>
						<td><s:select list="#{'运营':'运营','基建期':'基建期','停业':'停业','停产':'停产','关闭':'关闭' }" name="corpStatus" value="%{corpStatus}" headerKey="" headerValue="请选择" theme="simple" id="bselect6" cssStyle="width:80px;margin-left:5px;"></s:select></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">企业级别：</td>
						<td><s:select list="#{'A':'A','B':'B','C':'C','D':'D','E':'未评级' }" name="cGrade" value="%{cGrade}" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;"></s:select></td>
						<td width="15%" class="title_td">是否小微企业：</td>
						<td><s:select list="#{1:'非小微企业',2:'小微企业'}" name="cZcType" listKey="key" listValue="value" value="%{cZcType}" headerKey="" headerValue="请选择" theme="simple" cssStyle="width:155px;margin-left:5px;"></s:select></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">从业人数：</td>
						<td><input name="cBrens" type="text" class="info_input" value="${cBrens}">-<input name="cErens" type="text" class="info_input" value="${cErens}"></td>
						<td width="15%" class="title_td">安全管理人数：</td>
						<td><input name="cBaqrens" type="text" class="info_input" value="${cBaqrens}">-<input name="cEaqrens" type="text" class="info_input" value="${cEaqrens}"></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">职业病危害：</td>
						<td><s:radio list="#{'':'全部',0:'无',1:'有'}" value="%{cZyb}" name="cZyb" theme="simple"></s:radio></td>
						<td width="15%" class="title_td">特种设备：</td>
						<td><s:radio list="#{'':'全部',0:'无',1:'有'}" value="%{cTeshe}" name="cTeshe" theme="simple"></s:radio></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">涉危使用：</td>
						<td><s:radio list="#{'':'全部',0:'无',1:'有'}" value="%{cShewei}" name="cShewei" theme="simple"></s:radio></td>
						<td width="15%" class="title_td">重大危险源：</td>
						<td><s:radio list="#{'':'全部',0:'无',1:'有'}" value="%{cDanger}" name="cDanger" theme="simple"></s:radio></td>
					</tr>
					<tr>
						<td width="15%" class="title_td">避雷装置：</td>
						<td><s:radio list="#{'':'全部',0:'无',1:'有'}" value="%{cBlzh}" name="cBlzh" theme="simple"></s:radio></td>
						<td width="15%" class="title_td"></td>
						<td></td>
					</tr>
					<tr>
						<td align="center" colspan="4">
							<center>
							<input type="submit" name="btntj" class="link_input" value="查 询">
							<input type="reset" name="btn1" class="link_input" value="重 置">
							</center>
						</td>
					</tr>
				</table>
				<input type="hidden" name="forward" value="3">
			</form>
		</div>
	</div>
  </body>
</html>
